package com.hust.ele.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hust.ele.bean.Test;
import com.hust.ele.dao.TestDao;
import com.hust.ele.service.TestService;

@Service(value="testService")
public class TestSericeImpl implements TestService{
	
	@Autowired
	TestDao testDao;

	@Override
	@Transactional(readOnly=true)
	public Test findById(int id) {
		return this.testDao.findOne(id);
	}

}
